package yzserver.sx4a.domain;

import yzserver.sx4a.form.User;

/**
 * Created with IntelliJ IDEA.
 * User: andrew
 * Date: 14-8-15
 * Time: 上午10:27
 * To change this template use File | Settings | File Templates.
 */
public class UserDomain {
    private String U_ID; //即登陆系统的账号名(一般来说此属性应该是工号或拼音名，信息系统基本按照工号（工程、公文）和登录拼音名（如portal和邮件）作为登陆账号)
    private String EMPLOYEENUMBER;//工号
    private String CN;//账号的中文名
    private String MOBILE;//电话号码
    private String MAIL;//邮箱地址
    private String ROLE;//角色信息
    private String ENABLE;//    禁用的方式可根据系统禁用方式自行定义
    private String PWD;//账号的登陆密码
    private String STARTDATE;//账号生效时间YYYY-MM-dd 如2010-03-08
    private String ENDDATE;//账号失效时间yyyy-mM-dd 如2010-03-08
    private String UPDATEDATE;//    帐号更新时间yyyy-MM-dd HH:mm:ss，如2010-03-08 12:00:00
    private String POSITION;//岗位ID，根据应用需求定义是否需要（外部用户无）
    private String JOB;// 职务ID，根据应用需求定义是否需要（外部用户无）
    private String ORG;// 组织ID注意为20位的编码例如00410088002900000000
    private String SORT;//显示排序例如：  00410000000000000000/10@00410000000000000000/20，组织号/序号 表示在00410000000000000000下，第一个,多值属性针对于同一个人在不同的组织下，排序不同
    private String MISASSPER_ID;//人员id（外部用户无）

    private String DEPT_ID; //所属部门-hlj
    private String USER_POSITION;//职务称谓-hlj
    private String USER_LEVEL;//层级-hlj
    private String USER_EMPLOYEETYPE;//员工类型-hlj
    private String OLD_DEPT_ID;//原所属部门ID-hlj
    private String USER_CATEGORY;//主职、兼职-hlj

    public UserDomain() {

    }
    public UserDomain(User user) {
        this.U_ID = user.getUid();
        this.EMPLOYEENUMBER = user.getEmployeenumber();
        this.CN = user.getCn();
        this.MOBILE = user.getMobile();
        this.MAIL = user.getMail();
        this.ENABLE = user.getEnable();
        this.PWD = user.getPwd();
        this.STARTDATE = user.getStartdate();
        this.ENDDATE = user.getEnddate();
        this.UPDATEDATE = user.getUpdatedate();
        this.MISASSPER_ID = user.getMisassperid();
        this.SORT = user.getSort();

        this.DEPT_ID = user.getDeptId();
        this.USER_POSITION = user.getUserPosition();
        this.USER_LEVEL = user.getUserLevel();
        this.USER_EMPLOYEETYPE = user.getUserEmployeetype();
        this.OLD_DEPT_ID = user.getOldDeptId();
        this.USER_CATEGORY = user.getUserCategory();

    }


    public String getU_ID() {
        return U_ID;
    }

    public void setU_ID(String u_ID) {
        U_ID = u_ID;
    }

    public String getEMPLOYEENUMBER() {
        return EMPLOYEENUMBER;
    }

    public void setEMPLOYEENUMBER(String EMPLOYEENUMBER) {
        this.EMPLOYEENUMBER = EMPLOYEENUMBER;
    }

    public String getCN() {
        return CN;
    }

    public void setCN(String CN) {
        this.CN = CN;
    }

    public String getMOBILE() {
        return MOBILE;
    }

    public void setMOBILE(String MOBILE) {
        this.MOBILE = MOBILE;
    }

    public String getMAIL() {
        return MAIL;
    }

    public void setMAIL(String MAIL) {
        this.MAIL = MAIL;
    }

    public String getROLE() {
        return ROLE;
    }

    public void setROLE(String ROLE) {
        this.ROLE = ROLE;
    }

    public String getENABLE() {
        return ENABLE;
    }

    public void setENABLE(String ENABLE) {
        this.ENABLE = ENABLE;
    }

    public String getPWD() {
        return PWD;
    }

    public void setPWD(String PWD) {
        this.PWD = PWD;
    }

    public String getSTARTDATE() {
        return STARTDATE;
    }

    public void setSTARTDATE(String STARTDATE) {
        this.STARTDATE = STARTDATE;
    }

    public String getENDDATE() {
        return ENDDATE;
    }

    public void setENDDATE(String ENDDATE) {
        this.ENDDATE = ENDDATE;
    }

    public String getUPDATEDATE() {
        return UPDATEDATE;
    }

    public void setUPDATEDATE(String UPDATEDATE) {
        this.UPDATEDATE = UPDATEDATE;
    }

    public String getPOSITION() {
        return POSITION;
    }

    public void setPOSITION(String POSITION) {
        this.POSITION = POSITION;
    }

    public String getJOB() {
        return JOB;
    }

    public void setJOB(String JOB) {
        this.JOB = JOB;
    }

    public String getORG() {
        return ORG;
    }

    public void setORG(String ORG) {
        this.ORG = ORG;
    }

    public String getSORT() {
        return SORT;
    }

    public void setSORT(String SORT) {
        this.SORT = SORT;
    }

    public String getMISASSPER_ID() {
        return MISASSPER_ID;
    }

    public void setMISASSPER_ID(String MISASSPER_ID) {
        this.MISASSPER_ID = MISASSPER_ID;
    }

    public String getDEPT_ID() {
        return DEPT_ID;
    }

    public void setDEPT_ID(String DEPT_ID) {
        this.DEPT_ID = DEPT_ID;
    }

    public String getUSER_POSITION() {
        return USER_POSITION;
    }

    public void setUSER_POSITION(String USER_POSITION) {
        this.USER_POSITION = USER_POSITION;
    }

    public String getUSER_LEVEL() {
        return USER_LEVEL;
    }

    public void setUSER_LEVEL(String USER_LEVEL) {
        this.USER_LEVEL = USER_LEVEL;
    }

    public String getUSER_EMPLOYEETYPE() {
        return USER_EMPLOYEETYPE;
    }

    public void setUSER_EMPLOYEETYPE(String USER_EMPLOYEETYPE) {
        this.USER_EMPLOYEETYPE = USER_EMPLOYEETYPE;
    }

    public String getOLD_DEPT_ID() {
        return OLD_DEPT_ID;
    }

    public void setOLD_DEPT_ID(String OLD_DEPT_ID) {
        this.OLD_DEPT_ID = OLD_DEPT_ID;
    }

    public String getUSER_CATEGORY() {
        return USER_CATEGORY;
    }

    public void setUSER_CATEGORY(String USER_CATEGORY) {
        this.USER_CATEGORY = USER_CATEGORY;
    }
}
